﻿@model JewererBasic.PRODUCT_PROCESS

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>PRODUCT_PROCESS</legend>

        @Html.HiddenFor(model => model.IdProduct, "PRODUCT")        
        @Html.HiddenFor(model => model.IdProcess, "PROCESS")
                
        <div class="editor-label">
            @Html.LabelFor(model => model.Time)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Time)
            @Html.ValidationMessageFor(model => model.Time)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WorkerId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WorkerId)
            @Html.ValidationMessageFor(model => model.WorkerId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WeightIN)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WeightIN)
            @Html.ValidationMessageFor(model => model.WeightIN)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.WeightOut)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WeightOut)
            @Html.ValidationMessageFor(model => model.WeightOut)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateIn)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateIn)
            @Html.ValidationMessageFor(model => model.DateIn)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DateOut)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOut)
            @Html.ValidationMessageFor(model => model.DateOut)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProcessOrder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ProcessOrder)
            @Html.ValidationMessageFor(model => model.ProcessOrder)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Production Card", "Index", "Test", new { id = Model.IdProduct }, null)
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
